{include file="head" /}

<script>
var pay_type = '';
var wxpay_info = '';
var returnrul = "{:url('user/index')}";
</script>

<style>
.scroll-content{
    overflow: scroll
}
</style>

<body ng-app="starter" ng-controller="AppCtrl" class="navbar grade-a platform-browser platform-ios platform-ios9 platform-ios9_1 platform-ready">

<ion-nav-view class="view-container" nav-view-transition="ios" nav-view-direction="none" nav-swipe=""><ion-tabs class="tabs-icon-top navbar pane tabs-bottom tabs-standard" abstract="true" nav-view="active" style="opacity: 1; transform: translate3d(0%, 0px, 0px);">
    <!-- <div class="tab-nav tabs">
<a href="{:Url('/index/index/indexinfo/token/'.$token)}"  class="iconfont icon--6 tabnone tab-item " style=""><span class="tab-title ng-binding" >商品行情</span></a>
<a href="{:url('order/hold')}" class="iconfont icon--7 tabnone tab-item" style=""><span class="tab-title ng-binding" >交易记录</span></a>
<a href="{:url('user/index')}"  class="iconfont icon--8 tabnone tab-item tab-item-active" style=""><span class="tab-title ng-binding" >个人账户</span></a>

</div> -->

    <ion-nav-bar class="bar-stable headerbar nav-bar-container" nav-bar-transition="ios" nav-bar-direction="swap" nav-swipe="">

    	<div class="nav-bar-block" nav-bar="active">
    		 <!-- TODOLIST2: 公共头部  title需要设置成动态的 -->
             <header class="navbg">
                    <div class="back">
                    <a href="javascript:history.go(-1);">
                        <img src="__HOME__/img/back.png">
                    </a>
                    </div>
                    <!-- <span class="new_bar" id="sideMenu">
                    <img src="__HOME__/img/bar.png">
                    </span>	
                    <h1 class="title">推广二维码</h1> -->
                </header>
    	</div>
    </ion-nav-bar>
<!-- TODOLIST2: 弹出框内容 -->
<div class="canvas-backdrop">
        <div id="sideMenuContainer">
                <div id="Shut_btn">
            <img src="__HOME__/img/Shut.png">
          </div>
    
                <div class="User_login">
                    <form>
              
              <!-- 登录时显示该部分 -->
              <div class="a_login">
                            <div class="account">
                  <img src="__HOME__/img/wallet.png">我的钱包
                </div>
    
                            <ul class="bute">
                  <li>姓名：{$userinfo.nickname?$userinfo.nickname:$userinfo.username}{if $userinfo.otype == 101} (代理商 邀请码：{$userinfo.uid}) {/if}</li>
                  <li>余额：<span>${$userinfo.usermoney}</span></li>
                  <li>今日盈亏：{$all_ploss}</li>
                </ul>
    
                
                            <ul class="l_nav">
                  
                          <li onclick="show_user_modal('modal-deposit')">充值</li>
                  <li onclick="show_user_modal('modal-withdraw')">提现</li>
                  
                  
                  <li><a href="{:url('/index/user/index/token/'.$token)}">个人中心</a></li>
                  <li><a href="{:Url('/index/index/indexinfo/token/'.$token)}">交易</a></li>
                                <li onclick="app_exit()">退出</li>
                                <div style="clear: both;"></div>
                </ul>
              </div>
                        
    
              <!-- 未登录时显示该部分 -->
                        <!-- <div class="b_login">
                            <div class="h_profile">
                  <img src="__HOME__/img/img_head.png">
                </div>
                <div class="handle">
                    <button type="button" class="btn log_in">
                        <a href="{:Url('login/mainlogin')}">登录</a>
                    </button>
                    <button type="button" class="btn register">
                        <a href="{:Url('login/mainlogin')}?parm=register">开立账户</a>
                      </button>
                    <button type="button" class="btn trad_btn"> -->
                        <!-- <a href="{:url('/index/index/index/token/'.$token)}">交易平台</a></button>
                    <div class="f_pass"> -->
                      <!-- <a href="{:url('index/forgetpwd')}">忘记密码？立即找回</a>
                    </div>
                </div>
                  </div>								 -->
            </form>
            
    
                </div>
                
                <div class="list_box">
                    <div class="tit">
              <img src="__HOME__/img/icon_til.png">为什么是OPTIONCC
              <ul class="side_list">
                <li><a href="{:url('login/brand')}">&gt;10年老品牌</a></li>
                <li><a href="{:url('login/integrity')}">&gt;100%诚信兑付</a></li>
                        </ul>
                    </div>
          </div>
          
          <div class="list_box">
                    <div class="tit" style="padding-bottom:30px">
              <img src="__HOME__/img/icon_about.png">关于我们
              <ul class="side_list">
                <li><a href="{:url('login/contact')}">&gt;联系我们</a></li>
                <li><a href="{:url('login/clause')}">&gt;条款规则</a></li>
                <li><a href="{:url('login/payment')}">&gt;付款政策</a></li>
                        </ul>
                    </div>
                </div>
                    
            </div>  
      </div>
    <ion-content class="personalbg scroll-content ionic-scroll scroll-content-false  has-header has-tabs" scroll="false">
        <script src="https://cdn.bootcss.com/jquery.qrcode/1.0/jquery.qrcode.min.js"></script>
        <ion-content class="personalbg scroll-content ionic-scroll scroll-content-false  has-header has-tabs" scroll="false">
            <div id='qqr01' class="ercodes">
            <!-- <img src="http://pan.baidu.com/share/qrcode?w=240&h=240&url={$oid_url}" alt="" > -->
            </div>
        </ion-content>
    </ion-content>

    </ion-tabs>
</ion-nav-view>
<script type="text/javascript">
    $(function($) {
      // 你可以在这里继续使用$作为别名...
      $('#qqr01').qrcode({width: 200,height: 200,text: "{$oid_url}"});
    });
</script>
</body>
</html>
<div id="zypay_post"></div>
<script src="__HOME__/js/lk/user.js"></script>
<script src="__HOME__/js/lk/jquery.qrcode.js"></script>
<script src="__HOME__/js/lk/utf.js"></script>
<script>

</script>
<!-- TODOLIST2: 点击方法 -->
<script type="text/javascript">
    $(function () {  
      // 点击汉堡包          
      $("#sideMenu").click(function(e){
          console.log("234567890",$("#sideMenuContainer"))
        if($("#sideMenuContainer").hasClass("allhide")){
          $("#sideMenuContainer").animate({right:-295},"slow");
          $("#sideMenuContainer").removeClass("allhide");
          return;
        }

        e.stopPropagation();
        $("#sideMenuContainer").animate({right:0},"slow");
        $("#sideMenuContainer").addClass("allhide");
      })	

      //点击关闭 X
      $("#Shut_btn").click(function(e){
        if($("#sideMenuContainer").hasClass("allhide")){
          $("#sideMenuContainer").animate({right:-295},"slow");
          $("#sideMenuContainer").removeClass("allhide");
          return;
        }
      })

      //点击空白的地方
      $(document).click(function(){
        if($("#sideMenuContainer").hasClass("allhide")){
          $("#sideMenuContainer").animate({right:-295},"slow");
          $("#sideMenuContainer").removeClass("allhide");
          $(".canvas-backdrop").fadeOut();
        }
      });

      $("#sideMenu").click(function(){
        $(".canvas-backdrop").fadeIn();
      });

      $("#Shut_btn").click(function(){
        $(".canvas-backdrop").fadeOut();
      });
    })
  </script>